package com.xs.common.excel;

import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

/**
 * @author xs
 * date 2018/3/27 16:07
 */
public class ExcelImportResult<T> {

    /**
     * 导入错误信息
     */
    private String errorMsg;

    /**
     * 失败数据
     */
    private List<T> failList;

    /**
     * 有效数据
     */
    private List<T> correctList;

    /**
     * 是否存在校验失败
     */
    private boolean verfiyFail;

    /**
     * 失败的数据源
     */
    private Workbook failWorkbook;


    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public List<T> getFailList() {
        return failList;
    }

    public void setFailList(List<T> failList) {
        this.failList = failList;
    }

    public List<T> getCorrectList() {
        return correctList;
    }

    public void setCorrectList(List<T> correctList) {
        this.correctList = correctList;
    }

    public boolean isVerfiyFail() {
        return verfiyFail;
    }

    public void setVerfiyFail(boolean verfiyFail) {
        this.verfiyFail = verfiyFail;
    }

    public Workbook getFailWorkbook() {
        return failWorkbook;
    }

    public void setFailWorkbook(Workbook failWorkbook) {
        this.failWorkbook = failWorkbook;
    }
}
